<h1>Kings Hockey</h1>

<table>
<tr><td>
<!-- show upcoming games-->
<div class="highlight">
  <% if @schedule %>
  <div class="next_meeting">
    <h2>Next Game</h2>
    <p>
      <span class="date">
        <%= link_to h("#{@schedule.name} @ 7:00pm"), 
                    :controller => "schedule", 
                    :action     => :show, 
                    :id         => @schedule.id %>
      </span> : <span class="location"><%=h @schedule.type %></span>
    </p>
  </div>
  <% end %>
</td>
<td>
<img src = "images/stadium.jpg">
</td></tr>
</table>

<div class="highlight">
<!-- show upcoming events-->
  <% if @events %>
  <div class="next_meeting">
    <h2>Upcoming Events</h2>
    <p>
      <span class="date">
        <%= link_to h("#{@events.name}"), 
                    :controller => "events", 
                    :action     => :show, 
                    :id         => @events.id %>
      </span> : <span class="location"><%=h @events.location %></span>
    </p>
  </div>
  <% end %>
</div>

<!--become a member-->
  <div class="join">
    <h2>Become a Kings Member</h2>
    <p>
     Buy tickets, get discounts, and much more
	<%= link_to "here.", { :controller => "user", :action => :new} %> 
      
    </p>
  </div>

<!--jobs-->
<h3>Career Oppotrunities Available</h3>
<p>
  <%= mail_to "rcsnyper@hotmail.com", "Contact us" %> if you are 
  interested in a position with the team.</p>
